using System;
using Vici.Mvc;

namespace Demo.ViciMvc
{
    public class RestrictedController : BaseController
    {
        [BeforeAction]
        public void CheckLoggedIn()
        {
            if (!Session.LoggedIn)
                Response.Redirect("~/login");
        }
    }
}
